Learning Confidence Ellipsoids and Applications to Robust Subspace Recovery